package com.home.Entity;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.Proxy;

@Entity
@Proxy(lazy=false)
@Table(name="QUYENSUDUNG")
public class QuyenSuDung {

	@Id
	@Column(name="QSD_MASO")
	private long maSo;
	@Column(name="QSD_TEN")
	private String ten;
	@Column(name="QSD_MOTA")
	private String moTa;
		
	/*
	//lien ket voi bang ctquyen su dung
	@OneToMany(targetEntity=CTQuyenSuDung.class,mappedBy="quyenSuDung",
			cascade = CascadeType.ALL,fetch=FetchType.EAGER)
	Set<CTQuyenSuDung> CTQuyen = new HashSet<CTQuyenSuDung>();	
	
	public Set<CTQuyenSuDung> getCTQuyen() {
		return CTQuyen;
	}
	public void setCTQuyen(Set<CTQuyenSuDung> cTQuyen) {
		CTQuyen = cTQuyen;
	}
	*/
	public long getMaSo() {
		return maSo;
	}
	public void setMaSo(long maSo) {
		this.maSo = maSo;
	}
	public String getTen() {
		return ten;
	}
	public void setTen(String ten) {
		this.ten = ten;
	}
	public String getMoTa() {
		return moTa;
	}
	public void setMoTa(String moTa) {
		this.moTa = moTa;
	}
	
}
